import 'package:flutter/services.dart';
import 'package:Smart/utils/screen_unit/gs_screen_util.dart';

///初始化配置
///前提，加入到程序入口地方
class InitConfig{
  static instance(){
    print("初始化数据");

    /// 1.配置强制竖屏
    SystemChrome.setPreferredOrientations(<DeviceOrientation>[
      DeviceOrientation.portraitUp,
      DeviceOrientation.portraitDown
    ]);

    /// 2.高德地图配置
    // AMapFlutterLocation.setApiKey(
    //     "1dbf56e2e8a4d0e4cdc2df9efd36bc71", "b00400f84325ea0c319b93fa906205ce");

    ///3.屏幕适配初始化
    GsScreenUtil.init();
  }
}